package com.platform.modules.mall.activity.restrict;

import com.platform.modules.mall.activity.entity.bo.DirectGoShoppingBo;
import com.platform.modules.mall.service.MallOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;



@Component("goodsMaxOrderVerify")
public class GoodsMaxOrderVerify {

    @Autowired
    private MallOrderService mallOrderService;

    public boolean verify(DirectGoShoppingBo bo) {
        return mallOrderService.goodsQuatoVerify(bo.getUserId(),bo.getGoodsId(),bo.getMaxNumber());
    }

}
